package com.freesky.biz.activity.mapper;

import com.freesky.biz.activity.domain.TSettlement;
import com.freesky.biz.activity.domain.TSettlementDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SettlementMapper {

    public TSettlement get(String id);

    public List<TSettlement> findList(TSettlement entity);

    public int insert(TSettlement entity);

    public int update(TSettlement entity);

    public int updateCouponExpenseAmount(@Param("settleId") String settleId);
    public int updateAlipayExpenseAmount(@Param("settleId") String settleId);


    public TSettlement selectSettlementByName(@Param("name") String name);


    /**
     * 批量删除参数信息
     *
     * @param ids 需要删除的参数ID
     * @return 结果
     */
    public int deleteByIds(String[] ids);

    public List<TSettlementDetail> findSettlementDetailList(TSettlementDetail entity);

    public int updateSettlementById(@Param("fileUrl") String fileUrl,
                                    @Param("updateBy") String updateBy,
                                    @Param("settleId") String settleId);

    public int batchAddSettlementDetail(@Param("settlementDetailList")List<TSettlementDetail> settlementDetailList);

}
